The |flexor digitorum longus| is a deep muscle originating from the middle half of the back of the |tibia| and runs deep under the foot inserting in the bases of the distal phalanges of the second, third, fourth, and fifth toes. It flexes the toes for the final push-off in walking and running. It also flexes the foot. It is attached to the |flexor hallucis longus| muscle, which flexes the big toe.